<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
  
  <process id="twoSubProcessInParallel" isExecutable="true">
  
    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="fork" />
    
    <parallelGateway id="fork"/>
    <sequenceFlow id="flow2" sourceRef="fork" targetRef="subProcessA" />
    <sequenceFlow id="flow3" sourceRef="fork" targetRef="subProcessB" />

    
    <subProcess id="subProcessA">
    
      <startEvent id="subProcessAStart" />
      <sequenceFlow id="flow4" sourceRef="subProcessAStart" targetRef="subProcessATask" />
      <userTask id="subProcessATask" name="Task in subprocess A" />
      <sequenceFlow id="flow5" sourceRef="subProcessATask" targetRef="subProcessAEnd" />
      <endEvent id="subProcessAEnd" />
    
    </subProcess>
    <sequenceFlow id="flow6" sourceRef="subProcessA" targetRef="taskAfterSubProcessA" />
    <userTask id="taskAfterSubProcessA" name="Task after subprocess A" />
    <sequenceFlow id="flow7" sourceRef="taskAfterSubProcessA" targetRef="theEnd1" />
    <endEvent id="theEnd1" />
    
    
    <subProcess id="subProcessB">
    
      <startEvent id="subProcessBStart" />
      <sequenceFlow id="flow8" sourceRef="subProcessBStart" targetRef="subProcessBTask" />
      <userTask id="subProcessBTask" name="Task in subprocess B" />
      <sequenceFlow id="flow9" sourceRef="subProcessBTask" targetRef="subProcessBEnd" />
      <endEvent id="subProcessBEnd" />
    
    </subProcess>
    <sequenceFlow id="flow10" sourceRef="subProcessB" targetRef="taskAfterSubProcessB" />
    <userTask id="taskAfterSubProcessB" name="Task after subprocess B" />
    <sequenceFlow id="flow11" sourceRef="taskAfterSubProcessB" targetRef="theEnd2" />
    <endEvent id="theEnd2" />
    
  </process>

</definitions>